Instructions to MapNetworkDrive

" MNDArguments.vbs
" VB to map a network drive with all 5 arguments.
" Author Guy Thomas http://computerperformance.co.uk/
" Version 1.3 - April 24th 2005
" ----------------------------------------------------------------------"
Option Explicit
Dim objNetwork
Dim strDriveLetter, strRemotePath, strUser, strPassword, strProfile

" Values of variables set
strDriveLetter = "H:"
strRemotePath = "\\alan\home"
strUser = "guytom"
strPassword = "£@ssw0rd1"
strProfile = "false"

" This section creates a network . (objNetwork)
" Then apply MapNetworkDrive method. Result H: drive
" Note, this features 5 arguments on lines 21/22.
Set objNetwork = W.Create("W.Network")
objNetwork.MapNetworkDrive strDriveLetter, strRemotePath, _
strProfile, strUser, strPassword

" Extra code just to add a message box
W.Echo " Launch Explorer, check: "& strDriveLetter
W.Quit

" End of Example .